# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=tty-share
pkgver=2.4.0
pkgrel=10
pkgdesc="Share your terminal over the Internet"
url="https://tty-share.com/"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/elisescu/tty-share/archive/v$pkgver/tty-share-$pkgver.tar.gz"
options="chmod-clean !check" # no test suite

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build \
		-trimpath
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
c28bd5b6367555544087238ef243e8408baf4e078b4807c1c08ad614ae63fd331fd52a5f3a0216a193b78563d0ce4c1bf81d9e8aae2941d9416af335287e6f84  tty-share-2.4.0.tar.gz
"
